import {StorageService} from "../providers/StorageService";
import {UserInfo} from "../model/UserInfo";
import {Injectable} from "@angular/core";
@Injectable()
export class CheckUtil {
  constructor( private storageService:StorageService) {

  }

  public checkUserLogin(){
    if(this.storageService.read<UserInfo>('UserInfo') == null){
      return false;
    }
    return true;
  }

}

